<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
Yii::app()->setLanguage('tr');

return array(
		'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
		'name'=>'Complaints',

		// preloading 'log' component
		'preload'=>array('log'),

		// autoloading model and component classes
		'import'=>array(
				'application.models.*',
				'application.components.*',
				'application.modules.user.models.*',
				'ext.yiiext.behaviors.model.taggable.*',
				'application.helpers.*'
		),

		'modules'=>array(
				// uncomment the following to enable the Gii tool

				'gii'=>array(
						'class'=>'system.gii.GiiModule',
						'password'=>'123123',
						// If removed, Gii defaults to localhost only. Edit carefully to taste.
						'ipFilters'=>array('127.0.0.1','::1','localhost'),
				),
					

				// user module
				'user' => array(),
				'registration' => array(),
				'avatar' => array(),
				'role' => array(),
				'messages' => array(),
				'usergroup' => array(),
				'membership' => array(),
				'profile' => array(),
				'friendship' => array()
				//'Program' => array()



		),

		// application components
		'components'=>array(

				'user'=>array(
						'class' => 'application.modules.user.components.WebUser',
						'allowAutoLogin'=>true,
						'loginUrl' => array('//user/user/login'),

				),
					
				'coreScript'=>array(
						'class'=>'ClientScript',
				),
					

				'db'=>array(
						'class'=>'SRDbConnection',
						'connectionString' => 'mysql:host=localhost;dbname=complaint',
						'emulatePrepare' => true,
						'username' => 'root',
						'password' => '5869715',
						'charset' => 'utf8',
				),
				'messages' => array(
						'class'=>'CDbMessageSource',
				),


				'errorHandler'=>array(
						'errorAction'=>'site/error',
				),
				'log'=>array(
						'class'=>'CLogRouter',
						'routes'=>array(
								array(
										'class'=>'CFileLogRoute',
										'levels'=>'error, warning',
								),

								array(
										'class'=>'CWebLogRoute',
										'showInFireBug'=>true,
								),

						),
				),
				'image'=>array(
          				'class'=>'application.extensions.image.CImageComponent',
			            // GD or ImageMagick
			            'driver'=>'GD',
			            // ImageMagick setup path
			            'params'=>array('directory'=>'/opt/local/bin'),
        		),
		),


		// application-level parameters that can be accessed
		// using Yii::app()->params['paramName']
		'params'=>array(
				// this is used in contact page
				'adminEmail'=>'info@complaints.com.al',
		),
);
